/**
 * @作者 chengxinxiaofeng
 * @时间 2019年7月15日10:30:20
 */
package com.chinaunicom.tour.sys.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Table;
import javax.validation.constraints.NotBlank;

import com.chinaunicom.tour.sys.entity.base.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ApiModel(value = "组织结构表")
@Table(name = "sys_department")
@Data
@EqualsAndHashCode(callSuper=false)
public class SysDepartment extends BaseEntity implements Serializable{

    private static final long serialVersionUID = 6665594084507574639L;

 
    @ApiModelProperty(value = "部门名称")
    @NotBlank(message = "部门名称不能为空")
    private String name;

    @ApiModelProperty(value = "父级id")
    private String parentid;

    @ApiModelProperty(value = "数据来源(0钉钉，1创建)")
    private String dataFrom;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}
